﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GadgetStore.Data.Models
{
    public class Email
    {
        public int Id { get; set; }
        public string EmailBody { get; set; }
        public string SenderAddress { get; set; }
        public DateTime Date { get; set; }
        public Email()
        {
            Date = DateTime.Now;
        }
        public Email(string emailBody, string senderAddress)
        {
            EmailBody = emailBody;
            SenderAddress = senderAddress;
            Date = DateTime.Now;
            //Date = DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss");
        }
    }
}
